export default {
    increment(state) {
        state.count++
        localStorage.setItem("vuex-count", JSON.stringify(state));
    },
    incrementN(state, { n }) {
        state.count += n;
        localStorage.setItem("vuex-count", JSON.stringify(state));
    },
    decrement(state) {
        state.count--
        localStorage.setItem("vuex-count", JSON.stringify(state));
    },
    setMovieList(state, movieList) {
        state.movieList = movieList
        localStorage.setItem("vuex-count", JSON.stringify(state));
    },

}